import { BaseCommand } from '@amcax/base';
import { BaseExtrudeCommand } from '.';
import { wsApi } from '@app-cad/server';
import { i18n } from '@app-nextmesh/common/utils';

export const cmdStretch: BaseCommand = {
  id: 'cmdStretch',
  label: 'command.stretch',
  icon: 'commands/feature/stretch',
  create: (label, onClose, props) => (
    <BaseExtrudeCommand
      title={i18n.t(label)}
      onClose={onClose}
      props={props}
      createFunction={wsApi.createStretch}
      cmdId='cmdStretch'
    />
  ),
};
